package com.ham.mud.configuration;

import java.io.File;

public class FilePaths {
    public static String ROOT_DIR = "/development/src/hammud/HamMUD/resources" + File.separator;

    public static String getMobFilePath(String zone, String mobName) {
        return ROOT_DIR + "zones" + File.separator + zone + File.separator + "mobs" + File.separator + mobName + ".txt";
    }

    public static String getItemFilePath(String itemName) {
        return ROOT_DIR + "items" + File.separator + itemName + ".txt";
    }

    public static String getRoomFilePath(String zone, int x, int y) {
        return ROOT_DIR + "zones" + File.separator + zone + File.separator + "rooms" + File.separator + x + "~" + y + ".txt";
    }

    public static String getPlayerFilePath(String player) {
        return ROOT_DIR + "players" + File.separator + player + ".txt";
    }

    public static String getItemsFilePath() {
        return ROOT_DIR + "items";
    }

    public static String getMobsFilePath(String zone) {
        return ROOT_DIR + "zones" + File.separator + zone + File.separator + "mobs";
    }

    public static String getZonesFilePath() {
        return ROOT_DIR + "zones";
    }

    public static String getZoneFilePath(String zone) {
        return ROOT_DIR + "zones" + File.separator + zone + File.separator + zone + ".txt"; 
    }

    public static String getAsciiFilePath(String name) {
        return ROOT_DIR + "ascii" + File.separator + name + ".txt";
    }

    public static String getAsciiFilePath(String zone, String name) {
        return ROOT_DIR + "zones" + File.separator + zone + File.separator + "ascii" + File.separator + name + ".txt";
    }
}
